<?php
/* @var $this SiteController */

if (Yii::app()->session["user_id"] == null) {
    $this->redirect(array("site/index"));
}
$this->pageTitle = Yii::app()->name;
?>
<?php

$this->widget('application.extensions.cvisualizewidget.CVisualizeWidget',array(
    'data'=>array(
        'headings'=>array(         
        ),
        'data'=>array(
//            'ดีมาก' => array(4,8,25,56,23,78),
//            'ดี' => array(2,6,3,14,56,78),
//            'ปานกลาง'=>array(12,4,15,9,4.9),
//             'พอใช้' => array(4,5,5,6,23,8),
//            'ไม่ได้เรื่อง' => array(2,6,3,14,56,7)  
            
            $choice[choice1] => array($aa[0]),
            $choice[choice2] => array($aa[1]),
            $choice[choice3] => array($aa[2]),
            $choice[choice4] => array($aa[3]),
            $choice[choice5] => array($aa[4]),
 
        )
    ),
    'options' => array(
        'title'=>'สำรวจความพอใจ',
        'width'=>950,
        'height'=>250,
        'type' => 'pie'
    )
));
?>
